<template>
  <div class="build views">
    <container :props="props"
               :option="option"
               ref="container"></container>
  </div>
</template>
<script>
import init from '@/mixins/'
export default {
  props: {
    option: Object,
    props: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },
  mixins: [init],
  watch:{
    $route(to, from){
      console.log("路由变化!...............from:",from.path,"............to:",to.path,"............")
      this.$refs.container.initData();
      this.$refs.container.initFun();
    }
  }
}
</script>
<style lang="scss">
@import "../styles/style.scss";
</style>